<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>新增文档 - 光年(Light Year Admin)后台管理系统模板</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <meta name="keywords" content="LightYear,光年,后台模板,后台管理系统,光年HTML模板">
    <meta name="description" content="LightYear是一个基于Bootstrap v3.3.7的后台管理系统的HTML模板。">
    <meta name="author" content="yinqi">
    <link href="${pageContext.servletContext.contextPath}/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.servletContext.contextPath}/admin/css/materialdesignicons.min.css" rel="stylesheet">
    <!--标签插件-->

    <link rel="stylesheet"
          href="${pageContext.servletContext.contextPath}/admin/js/jquery-tags-input/jquery.tagsinput.min.css">
    <link href="${pageContext.servletContext.contextPath}/admin/css/style.min.css" rel="stylesheet">
</head>

<body>
<div class="container-fluid p-t-15">

    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">

                    <form action="#!" method="post" class="row">
                        <div class="form-group col-md-12">
                            <label for="type">栏目</label>
                            <div class="form-controls">
                                <select name="type" class="form-control" id="type">
                                    <option value="1">小说</option>
                                    <option value="2">古籍</option>
                                    <option value="3">专辑</option>
                                    <option value="4">自传</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group col-md-12">
                            <label for="title">标题</label>
                            <input type="text" class="form-control" id="title" name="title" value=""
                                   placeholder="请输入标题"/>
                        </div>
                        <div class="form-group col-md-12">
                            <label for="seo_keywords">关键词</label>
                            <input type="text" class="form-control" id="seo_keywords" name="seo_keywords" value=""
                                   placeholder="关键词"/>
                        </div>
                        <div class="form-group col-md-12">
                            <label for="seo_description">描述</label>
                            <textarea class="form-control" id="seo_description" name="seo_description" rows="5" value=""
                                      placeholder="描述"></textarea>
                        </div>
                        <%--文本编辑器--%>
                        <div class="form-group col-md-12" id="editor">
                            <p>请在此处编辑</p>
                        </div>
                        <div class="form-group col-md-12">
                            <label for="tags">标签</label>
                            <input class="js-tags-input form-control" type="text" id="tags" name="tags" value=""/>
                        </div>
                        <div class="form-group col-md-12">
                            <label for="sort">排序</label>
                            <input type="text" class="form-control" id="sort" name="sort" value="0"/>
                        </div>
                        <div class="form-group col-md-12">
                            <label for="status">状态</label>
                            <div class="clearfix">
                                <label class="lyear-radio radio-inline radio-primary">
                                    <input type="radio" name="status" value="0"><span>禁用</span>
                                </label>
                                <label class="lyear-radio radio-inline radio-primary">
                                    <input type="radio" name="status" value="1" checked><span>启用</span>
                                </label>
                            </div>
                        </div>
                        <div class="form-group col-md-12">
                            <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
                            <button type="button" class="btn btn-default"
                                    onclick="javascript:history.back(-1);return false;">返 回
                            </button>
                        </div>
                    </form>

                </div>
            </div>
        </div>

    </div>

</div>
<script rel="text/javascript" href="//unpkg.com/wangeditor/release/wangEditor.min.js"></script>
<script type="text/javascript">
    let E = window.wangEditor
    let editor = new E( document.getElementById('editor') )
    editor.create()
</script>

<script type="text/javascript" src="${pageContext.servletContext.contextPath}/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.servletContext.contextPath}/admin/js/bootstrap.min.js"></script>
<!--标签插件-->
<script src="${pageContext.servletContext.contextPath}/admin/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="${pageContext.servletContext.contextPath}/admin/js/main.min.js"></script>
</body>
</html>